package com.happysmile.tcpconfig.mybatis.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Table(name = "config")
public class Config {
    /*
     * config表主键
     * */
    @ApiModelProperty(value = "config表主键",required = false)
    @Id
    @Column
    private Integer id;


    /*
     * 要配置的软件名
     * */
    @ApiModelProperty(value = "要配置的软件名",required = true)
    @Column(unique = true,nullable = false)
    private String name;
}
